/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package sumanumeros;

import java.util.Scanner;

/**
 *
 * @author avanza
 */
public class Sumanumeros {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        
        
        int numero,suma=0;
        
        Scanner entrada=new Scanner(System.in);
        numero=entrada.nextInt();
        do{
            suma=suma+numero;
            
            
        }while( numero!=0);
        System.out.println(suma);
        
                
                
                
        // TODO code application logic here
    }
}
